package com.allwees.bs.core.model.order.entity;

import com.allwees.bs.core.model.order.wf.order.EOrderAction;
import com.allwees.bs.core.model.order.wf.order.EOrderState;
import com.allwees.bs.core.model.wf.entity.WorkflowLogEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@MappedSuperclass
public class OrderFlowModel extends WorkflowLogEntity<EOrderState, EOrderAction> {
    //订单ID
    @Column(name = "order_uuid", insertable = false, updatable = false, length = 48)
    private String orderUuid;

    //支付状态
    private Integer paymentStatus;

    //物流状态
    private Integer shippingStatus;

    //类型
    private Integer type;

    //原因
    private Integer reason;

    @Column(length = 4096)
    private String photos;
}
